<form  action="<{$callback}>" method="post" id='loginBar'>
  <div class="loginbox">
      <ul>
        <li class="clearfix">
          <label class="leftlabel"><i>*</i><{t}>用户名：<{/t}></label>
          <div class="floatdiv"><{input name="uname" vtype="required" class="inputstyle" id="uname" tabindex="1" value="{$loginName}"}>&nbsp;&nbsp;<a href="<{$singup_url}>"><{t}>立即注册<{/t}></a></div>
        </li>
        <li class="clearfix">
          <label class="leftlabel"><i>*</i><{t}>密码：<{/t}></label>
          <div class="floatdiv"><{input name="password" type="password" class="inputstyle" vtype="required" id="password" tabindex="2"}>&nbsp;&nbsp;<a href="<{$lost_url}>"><{t}>忘记密码<{/t}></a></div>
        </li>
        <{if $show_varycode}>
        <li class="clearfix">
          <label class="leftlabel"><i>*</i><{t}>验证码：<{/t}></label>
          <div class="floatdiv"><span id='verifyCodebox'><{input  vtype="required&&number" size="4" maxlength="4"  name="verifycode" id="iptlogin"  tabindex="3"}> <span class='verifyCode' style="display:none"><img id="membervocde" src="#" border="1" /><a href="javascript:changeimg('membervocde')">&nbsp;<{t}>看不清楚?换个图片<{/t}></a> </span> </span></div>
        </li>
        <{/if}>
        <li class="clearfix">
          <label class="leftlabel"></label>
          <div class="floatdiv">
            <button class="btn-login btn common-btn" type="submit" value="<{t}>登录<{/t}>" tabindex="4"><span><span>登 录</span></span></button>
			<!-- <input class="actbtn btn-login" type="submit" value="<{t}>登录<{/t}>" tabindex="4" /> -->
            <input type="hidden" name="forward" value="<{$forward}>">
          </div>
        </li>
      </ul>
    <!--<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <th><i>*</i><{t}>用户名：<{/t}></th>
            <td><{input name="uname" vtype="required" class="inputstyle" id="uname" tabindex="1" value="{$loginName}"}>&nbsp;&nbsp;<a href="<{$singup_url}>"><{t}>立即注册<{/t}></a></td>
        </tr>
        <tr>
            <th><i>*</i><{t}>密码：<{/t}></th>
            <td><{input name="password" type="password" class="inputstyle" vtype="required" id="password" tabindex="2"}>&nbsp;&nbsp;<a href="<{$lost_url}>"><{t}>忘记密码<{/t}></a></td>
      </tr>
       <{if $show_varycode}>
        <tr>
          <th><i>*</i><{t}>验证码：<{/t}></th>
          <td><span id='verifyCodebox'><{input  vtype="required&&number" size="4" maxlength="4" name="verifycode" id="iptlogin"  tabindex="3"}>
             <span class='verifyCode' style="display:none"><img id="membervocde" src="#" border="1" /><a href="javascript:changeimg('membervocde')">&nbsp;<{t}>看不清楚?换个图片<{/t}></a>
             </span>
             </span>
          </td>
        </tr>
        <{/if}>
        <tr>
        <th></th>
          <td><input class="actbtn btn-login" type="submit" value="<{t}>登录<{/t}>" tabindex="4" />
              <input type="hidden" name="forward" value="<{$forward}>">
            </td>
        </tr>
    </table>-->
  </div>
</form>
<{if $show_varycode}>
<script>

$$('#loginBar input').addEvent('focus',function(){
      if($(this.form).retrieve('showvcode',false))return;
      changeimg('membervocde');
      $('verifyCodebox').getElements('span').show();
      $(this.form).store('showvcode',true);
});

function changeimg(id){
	$(id).set('src','<{link app="b2c" ctl="site_passport" act="gen_vcode"}>#'+(new Date()));
}
</script>
<{/if}>